<?php
/**
 * 此处放置全局变量及数据库配置
 */

$GLOBALS['ENVIRONMENT']='dev';//数据库环境
$GLOBALS['ACTION'] = '';//默认为空

$GLOBALS['smsUser']='xiaofang';
$GLOBALS['smsKey']='vQIuCjcPPlwRKhUTxBNpbcHCQHmBiTsu';
$GLOBALS['smsTemplate_alarm']=12791;
$GLOBALS['smsTemplate_report']=11573;
$GLOBALS['smsTemplate_validate']=11593;


define('DB_MAX_CONNECTION_TRIES', 3);//常量定义最大数据库连接
//date_default_timezone_set('prc');//调整php时间差



/**
 * Main DB
 */

//主数据库本地数据库配置. 使用多维数组定义, 扩展性更强
$GLOBALS['db_configs']['main']['dev']=array('host'=>'localhost:3306',
    'user'=>'root',
    'pass'=>'root',
    'dbName'=>'zhengxie');

//这里配置云数据库参数. 与ENVIRONMENT联动.
$GLOBALS['db_configs']['main']['production']=array('host'=>'rdsfiqmaynfaaym.mysql.rds.aliyuncs.com',
    'user'=>'spark',
    'pass'=>'aiR2gambol',
    'dbName'=>'zhengxie');


//第二个数据库配置
$GLOBALS['db_configs']['jdb1']['dev']=array('host'=>'localhost:3306',
    'user'=>'root',
    'pass'=>'root',
    'dbName'=>'zhengxie');
$GLOBALS['db_configs']['jdb1']['production']=array('host'=>'rdsfiqmaynfaaym.mysql.rds.aliyuncs.com',
    'user'=>'spark',
    'pass'=>'aiR2gambol',
    'dbName'=>'zhengxie');
?>